<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
	<title>Vue使用animate动画和transition动画</title>
	<script type="text/javascript" src="./vue.js"></script>
	<link rel="stylesheet" type="text/css" href="./animate.css">
	<style type="text/css">
		.v-enter,.v-leave-on {
			opacity: 0;
		}
		.v-enter-active,.v-leave-active {
			transition: 3s;
		}
	</style>
</head>
<body>	
	<div id="app">
		<transition 
			type="transition"
			appear
			enter-active-class="animated swing v-enter-active" 
			leave-active-class="animated bounceOut v-leave-active"
			appear-active="animated swing"
		>
			<div v-if="show">hello world</div>
		</transition>
		<button @click="handleClick">goggle</button>
	</div>
	<script>
		var app = new Vue({
			el : '#app' ,
			data : {
				show : true
			},
			methods : {
				handleClick : function() {
					this.show = !this.show;
				}
			}
		});
	</script>
</body>
</html>